<div class="first" >
<?php 

    $asset  = sfAssetPeer::retrieveByPK($asset_id);
    
    include_partial('sfAsset/thumbs/thumb_image',array('asset'=>$asset,'w'=>'84','h'=>'84'));
?>
</div>
<?php if($asset){?>

<ul class="thumb-zone thumb-zone-<?php echo $asset->getId();?>">
<?php if( $asset->getType() == 'image' ){?>
    <li style="list-style:none">
    <?php
    echo link_to('['.__('Create thumb').']'
    , 'sfAsset/Choose_thumb_template?asset_id='.$asset->getId()
    , array('popup'=>array('title','width=800, height=800, modal=no'))
        );?>
    </li>
    <?php foreach( $asset->getsfAssetThumbs() as $thumb ){?>
    	<li style="list-style:none">
        <?php echo link_to1(__($thumb->getWidth().'x'.$thumb->getHeight().' ['.__('Edit thumb').']')
        , 'sfAsset/create_thumb?asset_id='.$asset->getId().'&w='.$thumb->getWidth().'&h='.$thumb->getHeight()
        , array('popup'=>array('title','width=800, height=800, modal=no','class'=>'edit'))
        )?>
    	</li>
    <?php }?>
<?php }?>
</ul>

<?php }?>
<div style="clear:both"></div>